<?php
/**
 * 通知处理
 * 
 * @package ews
 * @ews Enterprise WorkShop
 * @version 1.0 alpha
 * @since 2011-05-11
 * @author monkee
 */

class noticeApp extends app
{
	public function view(){
		$notice_id = $this->getData('get/notice_id');
		$obj = & $this->getModel('notice');
		$notice = $obj->read($notice_id, $this->user_id);
		return;
	}
	
	public function index(){
		$notice = & $this->getModel('notice');
		$notices = $notice->get_unread($this->user_id);
		$notice->delete_all($this->user_id);
		return array('notice' => $notices);
	}
}
?>